<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>员工</title>
    <link rel="stylesheet" href="./css/employee.css">
</head>
<body>
    <div class="sidebar">
        <h2>企业培训管理</h2>
        <ul>
            <li><a href="#" onclick="showSection('personal-info')">个人信息</a></li>
            <li><a href="#" onclick="showSection('course-list')">课程列表</a></li>
            <li><a href="#" onclick="showSection('enrollment')">我的报名</a></li>
            <li><a href="#" onclick="showSection('feedback')">课程反馈</a></li>
        </ul>
    </div>

    <div class="content">
        <section id="course-list" class="content-section">
            <h1>课程列表</h1>
            <form class="search-form">
                <input type="text" placeholder="搜索课程..." class="search-input">
                <button class="btn">筛选</button>
            </form>
            <div id="course-container" class="course-container">
                <!-- 动态课程卡片将添加在这里 -->
            </div>
        </section>

        <section id="personal-info" class="content-section hidden">
            <div class="info-form">
                <h2>个人信息</h2>
                <label for="id">账户：</label>
                <input type="text" id="account" name="id" value="请输入账号" class="input-field" disabled>
               
                <label for="username">昵称：</label>
                <input type="text" id="nickname" name="username" placeholder="输入用户名" class="input-field">

                <label for="password">密码：</label>
                <input type="password" id="password" name="password" placeholder="输入密码" class="input-field">

                <button type="submit" class="btn">保存修改</button>
            </div>
        </section>

        <section id="enrollment" class="content-section hidden">
            <h1>我的报名</h1>
            <ul class="enrollment-list" id="enrollment-container">
                <!-- 动态生成的报名记录将添加在这里 -->
            </ul>
        </section>
        <section id="feedback" class="content-section hidden">
            <h1>课程反馈</h1>
            <form class="info-form">
                <label for="course-feedback">请选择课程：</label>
                
                <select id="course-feedback" class="input-field">
                    <!-- 动态加载课程列表 -->
                </select>

                <label for="feedback">反馈内容：</label>
                <textarea id="feedback" rows="5" placeholder="请输入您的反馈..." class="input-field"></textarea>

                <button type="submit" class="btn">提交反馈</button>
            </form>
        </section>
    </div>
    <script src="./js/employee.js"></script>
</body>
</html>
